package source.classes.com.efg.framework
{
	import flash.display.Sprite;
	/**
	 * 积分面板
	 * @author zqp
	 * 
	 */	
	public class ScoreBoard extends Sprite
	{
		private var textElements:Object;
		public function ScoreBoard()
		{
			super();
			init();
		}
		private function init():void
		{
			textElements = {};
		}
		public function createElementText(key:String,obj:SideBySideScoreElement):void
		{
			this.textElements[key] = obj;
			addChild(obj);
		}
		public function update(key:String,value:String):void
		{
			var tempElement:SideBySideScoreElement = textElements[key];
			tempElement.setContentText(value);
		}
	}
}